package game.controler.ecouteurs.vue;

import game.controler.Action;
import game.controler.EtatJeu;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

/**
 *
 * @author Gab'z
 */
public class EcouteurFondVue implements MouseListener {

    public EcouteurFondVue() {
    }

    @Override
    public void mouseClicked(MouseEvent e) {
    }

    @Override
    public void mousePressed(MouseEvent e) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        if (EtatJeu.clicVueAutorisé()) {
            Action.clicFond();
        } else {
            System.out.println("EcouteurFondVue : clic non autorisé");
        }
    }

    @Override
    public void mouseEntered(MouseEvent e) {
        // throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseExited(MouseEvent e) {
        // throw new UnsupportedOperationException("Not supported yet.");
    }
}
